# currently no other option but to have daily logs and have year-month-day format in the name with
# 4-digit year and 2-digit month and day
log_name_pattern: sample_logs/counter_(yyyy-mm-dd).log

# path_types regular expressions allow matching to classify page urls as either an investigation or request
# based on specific URL structure for your system.
path_types:
  investigations:
    - ^/api/datasets/[^\/]+$
    - ^/api/versions/\d+$
    - ^/stash/dataset/\S+$
    - ^/stash/data_paper/\S+$
  requests:
    - ^/api/datasets/[^\/]+/download$
    - ^/api/versions/\d+/download$
    - ^/api/downloads/\d+$
    - ^/stash/downloads/download_resource/\d+$
    - ^/stash/downloads/file_download/\d+$
    - ^/stash/downloads/file_stream/\d+$
    - ^/stash/downloads/async_request/\d+$
    - ^/stash/share/\S+$

# Robots and machines urls are urls where the script can download a list of regular expressions to determine
# if something is a robot or machine user-agent.  The text file has one regular expression per line
robots_url: {{ dataverse.counter.robots_url }}
machines_url: {{ dataverse.counter.machines_url }}

# the year and month for the report you are creating.
year_month: {{ dataverse.counter.year_month }}

# Don't put the filename extension, the code will tack on the tsv or json extension for you.
# Output formats are either tsv or json currently.  TSV is currently broken until anyone accepts reports in that format.
output_file: {{ dataverse.counter.output_file }}
output_format: {{ dataverse.counter.output_format }}

# the name of the platform that goes into your reports
platform: {{ dataverse.counter.platform }}

# Don't put your api token in here if you're going to commit it, but put in separate secrets.yaml in same
# directory as the config or else set a environment variable when starting up in order to override the key.
# yaml key/values set in secrets.yaml will override one from the main config.
hub_api_token: {{ dataverse.counter.hub_api_token }}
# the test metrics is only for testing
# hub_base_url: https://metrics.test.datacite.org
hub_base_url: {{ dataverse.counter.hub_base_url }}
upload_to_hub: False

# only use this to simulate running on a date besides today
# simulate_date: 2018-04-02

maxmind_geoip_country_path: {{ dataverse.counter.maxmind_geoip_country_path }}
